import Router from 'koa-router';
import { getVideoComment, sendComment } from '../../../controller/api/video/comment';
import getVideo from '../../../controller/api/video/getVideo';
import getVideoDetail from '../../../controller/api/video/getVideoDetail';
import { updateVideo, updateVideoOther } from '../../../controller/api/video/updateVideo';

const videoRouter = new Router();

// 获取视频列表
videoRouter.post('/getList', getVideo);

// 获取视频详细信息
videoRouter.post('/getVideoDetail', getVideoDetail);

// 更新视频信息
videoRouter.post('/updateVideo', updateVideo);

// 获取评论列表
videoRouter.post('/getVideoComment', getVideoComment);

// 发布评论
videoRouter.post('/sendComment', sendComment);

// 更新其它数据
videoRouter.post('/updateVideoOther', updateVideoOther);

export default videoRouter;
